from django.db import models
import json

# Create your models here.
class Configs(models.Model):
    """
    配置表
    """
    id = models.BigAutoField(primary_key=True)
    marker = models.CharField(verbose_name="标识", max_length=16, blank=False, null=False)
    config_json = models.JSONField(verbose_name="配置", blank=False, null=False, default=dict)

    def __str__(self):
        return self.marker

